import request from '@/utils/request'
//上传培养目标
export const uploadingTrainFile = (data) => {
    return request.post('/exam/T_subject/getuploadPei', data)
}

//查看培养目标路径
export const getTrainPath = () => {
    return request.get('/exam/T_subject/Get_T_user_a_c_s_and_PeiPath')
}

//教学大纲根据路径返回数据
export const getSyllabusData = (data) => {
    return request.get(`/exam/T_subject/getDocumen?path=${data}`, {
        responseType: 'blob' // 设置响应类型为 Blob
    })
}

//上传认证体系
export const uploadingCertificationFile = (data) => {
    return request.post('/exam/T_subject/getuploadReng', data)
}

//获取认证体系路径
export const getCertificationPath = () => {
    return request.get('/exam/T_subject/Get_T_user_a_c_s_and_RengPath')
}